home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / pcmcli_1 / SERVER.FRM (.txt) < prev   
Encoding:
Visual Basic Form  |  1999-04-09  |  1.3 KB  |  48 lines

  1. VERSION 5.00
  2. Object = "{3E7AEF13-EEC0-11D2-8B43-000000000000}#1.0#0"; "PCMServer.ocx"
  3. Begin VB.Form Server 
  4.    Caption         =   "Form1"
  5.    ClientHeight    =   3600
  6.    ClientLeft      =   60
  7.    ClientTop       =   345
  8.    ClientWidth     =   5025
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   3600
  11.    ScaleWidth      =   5025
  12.    StartUpPosition =   3  'Windows Default
  13.    Begin PCMServer.PCM_Server PCM_Server1 
  14.       Left            =   4320
  15.       Top             =   120
  16.       _ExtentX        =   1085
  17.       _ExtentY        =   873
  18.    End
  19.    Begin VB.TextBox Text1 
  20.       Height          =   3615
  21.       Left            =   0
  22.       MultiLine       =   -1  'True
  23.       TabIndex        =   0
  24.       Top             =   0
  25.       Width           =   5055
  26.    End
  27. Attribute VB_Name = "Server"
  28. Attribute VB_GlobalNameSpace = False
  29. Attribute VB_Creatable = False
  30. Attribute VB_PredeclaredId = True
  31. Attribute VB_Exposed = False
  32. ' this sample project will show you
  33. ' how to use the server to make a real
  34. ' time chat room
  35. ' any one useing the clinet sample project
  36. ' login and chat
  37. Private Sub Form_Load()
  38. PCM_Server1.PortNum = 1001
  39. PCM_Server1.Wait
  40. End Sub
  41. Private Sub PCM_Server1_DataArrival()
  42. Text1.Text = PCM_Server1.Data
  43. End Sub
  44. Private Sub Text1_Change()
  45. PCM_Server1.Data = Text1.Text
  46. PCM_Server1.SendData
  47. End Sub
  48.